
(global-set-key "\C-x\ \C-r" 'recentf-open-files)

(global-set-key "\C-s" 'swiper)
(global-set-key (kbd "C-c C-r") 'ivy-resume)
(global-set-key (kbd "<f6>") 'ivy-resume)
(global-set-key (kbd "M-x") 'counsel-M-x)
(global-set-key (kbd "C-x C-f") 'counsel-find-file)
(global-set-key (kbd "C-h f") 'counsel-describe-function)
(global-set-key (kbd "C-h v") 'counsel-describe-variable)
(global-set-key (kbd "C-h l") 'counsel-find-library)

(global-set-key (kbd "<f2>") 'open-my-init-file)



;;indent code
(global-set-key (kbd "C-M-\\") 'indent-region-or-buffer)

;;Company 有时候补全功能并不是非常理想，这时就可以使用 Hippie Expand 来完成补全
(global-set-key (kbd "s-/") 'hippie-expand)

(global-set-key (kbd "C-w") 'backward-kill-word)






(provide 'init-keybindings)
